import QtQuick 2.0
import QtQuick.Controls 2.5

MenuBar {
    width: parent.width
    Menu {
        title: qsTr("&File")
        Action { text: qsTr("&New...") }
        Action { text: qsTr("&Open...") }
        Action { text: qsTr("&Save") }
        Action { text: qsTr("Save &As...") }
        MenuSeparator { }
        Action { text: qsTr("&Quit") }
    }
    Menu {
        title: qsTr("&Edit")
        Action { text: qsTr("Cu&t") }
        Action { text: qsTr("&Copy") }
        Action { text: qsTr("&Paste") }
    }
    Menu {
        title: qsTr("&View")
        ActionGroup {
            id: checkGroup
        }
        Action { text: qsTr("check1") ; checkable:true; checked: true; ActionGroup.group: checkGroup }
        Action { text: qsTr("check2") ; checkable:true ; ActionGroup.group: checkGroup}
        Action { text: qsTr("check3") ; checkable:true ; ActionGroup.group: checkGroup}
        Action { text: qsTr("check4") ; checkable:true ; ActionGroup.group: checkGroup}
        Menu {
            title: qsTr("Advanced")
            Action { text: qsTr("test1") }
            Action { text: qsTr("test2") }
        }
    }
    Menu {
        title: qsTr("&Help")
        Action { text: qsTr("&About") }
    }
    background: Rectangle {
        color: "#ffffff"

        Rectangle {
            color: "#c0c0c0"
            width: parent.width
            height: 1
            anchors.bottom: parent.bottom
        }
    }
}
